#ifndef __WATCHPOINT_H__
#define __WATCHPOINT_H__

#include "common.h"

typedef struct watchpoint {
	int NO;
	struct watchpoint *next;

	/* TODO: Add more members if necessary */

        char expr[128];
	uint32_t old_val;
	uint32_t new_val;
} WP;
WP *new_wp();
WP *find_wp(int no);
void free_wp(WP *wp);
void set_wp(char *EXPR);
void check_wp();
void list_wp();
void delete_wp(int no);

#endif
